package com.um.psystem.service.sopService;

import com.um.psystem.model.vo.JsonResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Auther: QY
 * @Date: 2021/09/06 - 20:48
 * @Description: com.um.psystem.service.sopService.impl
 * @version: 1.0
 */
public interface ISOPUpdateService {

    List<Map<String,Object>> getSopRecordList(Map map);
    JsonResult<Integer> checkFileName(String[] fileNameAra);

    JsonResult<Integer> checkModelSopFileName(String[] fileNameAra);
    @Transactional
    JsonResult<Integer> deleSOPRecord(Integer id,String url);

    @Transactional
    JsonResult<Integer> deleMachineTypeSOPRecord(Integer id,String url);

    @Transactional
    JsonResult<Integer> addSOPRecord(Map map,String[] fileNameAra,String dir1,String url);
    @Transactional
    JsonResult<Integer> addSOPRecordByCurrent(Map map,String[] fileNameAra,String dir1,String url);

    @Transactional
    JsonResult<Integer> addSOPRecordByMachineType(Map map,String[] fileNameAra,String url);
}
